package abaco.symbol.function;

import abaco.symbol.Function;

public class Logarithm extends Function {
	public final static String BASE = "function-logarithm-base";

	@Override
	protected String nameToLatex() {
		StringBuilder latex = new StringBuilder();
		latex.append("{\\log");
		String base = toLatex(BASE);
		if (!base.equals(UNDEFINED_LATEX)) {
			latex.append("_");
			latex.append(base);
		}
		latex.append("}");
		return latex.toString();
	}
}
